import { axios } from '@/utils/request'
export function getChannelPage(parameter) {
  parameter.pageNum = parameter.current;
  parameter.pageSize = parameter.size;
  return axios({
    url: '/sys/hr/channel/pageQuery',
    method: 'post',
    data:parameter
  })
}
export function addChannel(parameter) {
  return axios({
    url: '/sys/hr/channel/addChannel',
    method: 'post',
    data:parameter
  })
}
export function editChannel(parameter) {
  return axios({
    url: '/sys/hr/channel/editChannel',
    method: 'post',
    data:parameter
  })
}
export function delChannel(parameter) {
  return axios({
    url: '/sys/hr/channel/deleteChannel',
    method: 'post',
    data:parameter
  })
}
export function listChannel(parameter) {
  return axios({
    url: '/sys/hr/channel/listChannel',
    method: 'get',
    params:parameter
  })
}
export function getChannelInfo(id) {
  return axios({
    url: '/sys/hr/channel/query/' + id,
    method: 'get',
  })
}
export function getFallList() {
  return axios({
    url: '/sys/hr/localService/listLocalService',
    method: 'get',
  })
}
export function localServiceCooperateStatusSet(parameter) {
  return axios({
    url: '/sys/hr/channel/localServiceCooperateStatusSet',
    method: 'post',
    data:parameter
  })
}
// 客户资源
export function pageChannelEnterprise(parameter) {
  return axios({
    url: '/sys/hr/enterprise/pageChannelEnterprise',
    method: 'post',
    data:parameter
  })
}
export function channelEnterpriseFeeDetail(id) {
  return axios({
    url: `/sys/hr/enterpriseFee/channelEnterpriseFeeDetail/${id}`,
    method: 'get'
  })
}
